<html xmlns:th="http://www.thymeleaf.org">
<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch"
          data-options="{searchDatagrid:$.CurrentNavtab.find('#datagrid-deviceClient-filter')}">
        <div class="bjui-searchBar">
            <label>设备名称：</label>
            <input type="text" name="name" class="form-control" size="15">

            <label>当前任务</label>
            <select name="taskCmd" data-toggle="selectpicker" id="selectCurrentTask1">
            </select>

            <label>状态</label>
            <select name="state" data-toggle="selectpicker" id="select_client_state1">
            </select>

            <button type="submit" class="btn-green" data-icon="search">搜索</button>
            <button type="reset" class="btn-orange" data-icon="times" onclick="resetAll();">重置</button>

            <div class="bjui-moreSearch" style="top: 27px; display: none;">
                <label>昵称：</label>
                <input type="text" name="nickName" class="form-control" size="15">


            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-deviceClient-filter" data-toggle="datagrid" data-options="{
        height: '100%',
        showToolbar: true,
        toolbarItem: 'refresh,|,add,edit,del',
        dataUrl: '/admin/client',
        dataType: 'json',
        jsonPrefix: '',
        editMode: {dialog:{width:'700',height:750,title:'编辑信息',mask:true}},
        editUrl: '/admin/client/initpage?req_id={id}',
        delUrl:'/admin/client/del',
        delPK:'id',
        delConfirm:true,
        showCheckboxcol: true,
        inlineEditMult:false,
        paging: {pageSize:20},
        linenumberAll: true,
        filterThead:false,
        hScrollbar:true
    }">
        <thead>
        <tr>
            <th data-options="{name:'name',align:'center',width:150}">设备名称</th>
            <th data-options="{name:'code',align:'center',width:150}">设备代码</th>
            <th data-options="{name:'taskCmd',align:'center',width:115}">当前任务</th>
            <th data-options="{name:'virtualNum',align:'center',width:150}">虚拟机数量</th>
            <th data-options="{name:'state',align:'center',width:170}">状态</th>
            <th data-options="{name:'updatedTime',align:'center',width:170}">更新时间</th>
        </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">
    select_option('select_client_state1', 'com.imessage.type.DeviceClientState');
    select_option('selectCurrentTask1', 'com.imessage.type.BusinessTaskCmd');

</script>
